cmake_minimum_required(VERSION 3.0)
project(h264_live_video)
add_compile_options(-std=c++11)
find_package(
    opencv REQUIRED
)

set(ffmpeg_libs_DIR /usr/local/lib)
include_directories(
    ${OpenCV_INCLUDE_DIRS}
    
)
link_directories(
    ${ffmpeg_libs_DIR}
)
add_executable(
    ${PROJECT_NAME}
    h264_encode.cpp
    h264_framed_live_source.cpp
    h264_live_video_server_media_subssion.cpp
    main.cpp)

target_link_libraries(
    ${PROJECT_NAME}
    ${OpenCV_LIBRARIES}
    avcodec
    avfilter
    avformat
    avutil
    swscale
    swresample
    ${LIVE555_LIBS}
    ${LOCAL_LIBS}
    glog
    gflags
)